package org.ourgrid.broker.scheduler.extensions;




public class IncomingHandle extends GenericTransferHandle {

	
	private static final long serialVersionUID = 1L;
	
	private long fileSize;
	private String senderContainerID;

	public IncomingHandle() {}
	
	public IncomingHandle(long id, String localFileName, String destinationFileName, long fileSize, 
			String description, String senderContainerID) {
		super(id, localFileName, destinationFileName, description);
		this.fileSize = fileSize;
		this.senderContainerID = senderContainerID;
	}
	
	
	public IncomingHandle(String localFileName, String destinationFileName, long fileSize, String description, 
			String senderContainerID) {
		super(randomID(), localFileName, destinationFileName, description);
		this.senderContainerID = senderContainerID;
		this.fileSize = fileSize;
		this.senderContainerID = senderContainerID;
	}

	public long getFileSize() {
		return fileSize;
	}

	public String getSenderContainerID() {
		return senderContainerID;
	}

	public void setSenderContainerID(String senderID) {
		this.senderContainerID = senderID;
	}

	@Override
	public String getOppositeID() {
		return senderContainerID;
	}

	public void setFileSize(long fileSize) {
		this.fileSize = fileSize;
	}
	
}